package red.sonph.util.backup;


import java.io.PrintStream;

public class Logger
{
private boolean isLog= true;


  public  boolean isLog()
  {
  return isLog;
  }

  public  void setIsLog(boolean val)
  {
	  isLog = val;
  }

  public static void log(String msg, Boolean isError)
  {
  FileTool fileT=new FileTool();
  fileT.saveToFile(msg, "log.txt", isError);
  }

 
  public static void main (String args[]){
	//Logger logger=new Logger();
	Logger.log("thanh cong", false);
	Logger.log("exception", true);
	
  }
}

